package com.jiuyin.dianjing.ui.activity.team;

import android.content.res.Resources;
import android.view.View;
import android.widget.BaseAdapter;
import android.widget.ListView;

import com.jiuyin.dianjing.R;
import com.jiuyin.dianjing.adapter.TeamPostReportAdapter;
import com.jiuyin.dianjing.ui.activity.base.BaseActivity;

import java.util.Arrays;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * 帖子举报界面
 */
public class TeamPostReportActivity extends BaseActivity {

    @BindView(R.id.lv_report)
    ListView mListView;

    private BaseAdapter mAdapter;

    @Override
    protected int setLayoutId() {
        return R.layout.activity_team_post_report;
    }


    @Override
    protected void initData() {
        Resources resources = getResources();
        String[] reports = resources.getStringArray(R.array.team_post_report);
        mAdapter = new TeamPostReportAdapter(this, Arrays.asList(reports));
        mListView.setAdapter(mAdapter);
    }

    @Override
    protected void initView() {
        setTitle(R.string.match_more_inform);
    }

    @OnClick({R.id.iv_back})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.iv_back:
                finish();
                break;
            default:
                break;
        }
    }
}
